<?php

namespace app\index\service;

use app\index\dao\LawCaseDaysDao;
use think\Collection;

/**
 * Class LawCaseOptionsDaysService
 * @package app\index\service
 */
class LawCaseOptionsDaysService
{
    // dao
    private LawCaseDaysDao $lawCaseDaysDao;

    public function __construct(LawCaseDaysDao $lawCaseDaysDao)
    {
        $this->lawCaseDaysDao = $lawCaseDaysDao;
    }

    /**
     * 列表
     * @return Collection
     */
    public function index(): Collection
    {
        //这里如果要修改查询，建议把查询放到dao层去
        return $this->lawCaseDaysDao->selectOptions();
    }
}
